<!DOCTYPE html>
<html lang="zh_CN" xmlns:th="http://www.thymeleaf.org"
      xmlns:shiro="http://www.pollix.at/thymeleaf/shiro">
<meta charset="utf-8">
<head th:include="include::header"></head>
<body class="gray-bg">
<div class="wrapper wrapper-content animated fadeInRight">
	<div class="row">
		<div class="col-sm-12">
			<div class="ibox float-e-margins">
				<div class="ibox-title">
					<h5>   </h5>
				</div>
				<div class="ibox-content">
					<form class="form-horizontal m-t layui-form" id="signupForm">
						<input id="id" name="id" type="hidden" th:value="${class.id}">
						<div class="form-group">
							<label class="col-sm-3 control-label">专业编号：</label>
							<div class="col-sm-8">
								<input id="majId" name="majId" class="form-control"
									   type="text" th:value="${class.majId}">
							</div>
						</div>
						<div class="form-group">
							<label class="col-sm-3 control-label">所属学院：</label>
							<div class="col-sm-8">
								<select id="colName" lay-filter="colName" class="layui-input-inline" name="colId">
									<option value="" selected="">请选择学院</option>
									<option th:each="college:${colleges}" th:value="${college.id}"   selected="${major.getColId() eq college.getId()}'">[[${college.colName}]]</option>
								</select>
							</div>
						</div>
						<div class="form-group">
							<label class="col-sm-3 control-label">所属专业：</label>
							<div class="col-sm-8">
								<select id="majName" lay-filter="majName" class="layui-input-inline" name="majId">
									<option value="" selected="">请选择专业</option>
									<option th:each="major:${majors}" th:value="${major.id}"   selected="${class.getMajId() eq major.getId()}'">[[${major.majName}]]</option>
								</select>
							</div>
						</div>
						<div class="form-group">
							<label class="col-sm-3 control-label">班级名称：</label>
							<div class="col-sm-8">
								<input id="claName" name="claName" class="form-control" th:value="${class.claName}"
									   type="text">
							</div>
						</div>
						<div class="form-group">
							<label class="col-sm-3 control-label">班级备注：</label>
							<div class="col-sm-8">
								<input id="claRemark" name="claRemark" class="form-control" th:value="${class.claRemark}"
									   type="text">
							</div>
						</div>
						<div class="form-group">
							<label class="col-sm-3 control-label">其他附加：</label>
							<div class="col-sm-8">
								<input id="claAppend" name="claAppend" class="form-control" th:value="${class.claAppend}"
									   type="text">
							</div>
						</div>
						<div class="form-group">
							<label class="col-sm-3 control-label">状态：</label>
							<div class="col-sm-8">
									<input type="radio" name="claStatus"
										   th:field="*{class.claStatus}" value="1" title="可用" />
								 <input type="radio" th:field="*{class.claStatus}" name="claStatus" value="0" title="不可用"/>

							</div>
						</div>

						<div class="form-group">
							<div class="col-sm-8 col-sm-offset-3">
								<button type="submit" class="btn btn-primary">提交</button>
							</div>
						</div>
					</form>
				</div>
			</div>
		</div>
	</div>
</div>
	<div th:include="include::footer"></div>
	<script th:src="@{/static/js/admin/class/class_edit.js}"></script>
</body>
<script>
    layui.use(['form'], function () {

    });
</script>
</html>
